home *** CD-ROM | disk | FTP | other *** search
/ Aminet 52 / Aminet 52 (2002)(GTI - Schatztruhe)[!][Dec 2002].iso / Aminet / dev / c / CLib-SDI.lha / CLib-SDI / testsource / EasyTest.c next >
C/C++ Source or Header  |  2002-10-27  |  926b  |  36 lines

  1. /* Programmheader
  2.  
  3.     Name:        EasyTest.c
  4.     Main:        example
  5.     Versionstring:    $VER: EasyTest.c 1.0 (21.09.2002)
  6.     Author:        SDI
  7.     Distribution:    Freeware
  8.     Description:    the example library test program
  9.  
  10.  1.0   21.09.02 : first version
  11. */
  12.  
  13. #include <proto/dos.h>
  14. #include <proto/exec.h>
  15.  
  16. int main(int argc, char **argv)
  17. {
  18.   struct Library *ExampleBase;
  19.  
  20.   if((ExampleBase = OpenLibrary("example.library", 1)))
  21.   {
  22.     Printf("Loaded Library\n");
  23.     Printf("ln_Type:      9 --> %ld\n", ExampleBase->lib_Node.ln_Type);
  24.     Printf("ln_Name:      %s\n", ExampleBase->lib_Node.ln_Name);
  25.     Printf("lib_Flags:    4(6) --> %ld\n", ExampleBase->lib_Flags);
  26.     Printf("lib_Version:  %ld\n", ExampleBase->lib_Version);
  27.     Printf("lib_Revision: %ld\n", ExampleBase->lib_Revision);
  28.     Printf("lib_IdString: %s\n", ExampleBase->lib_IdString);
  29.  
  30.     CloseLibrary(ExampleBase);
  31.   }
  32.   else
  33.     Printf("Failed to open example.library\n");
  34.   return 0;
  35. }
  36.